#ifndef __ErrorCode__
#define __ErrorCode__

enum _error_code
{
    Success = 0,
    Fail,
    UserNameAlreadyExist,   // error code for registering with existing user name
    WrongPassword,          // log in with wrong password
    KeyExpired,             // key expired
    HardwareIDChanged,      // HardwareID is changed abnormally,
    InvalidProductKey,      // invalid product key
    InvalidDataFormat,
    KeyAlreadyRegistered,
    SocketError,
    UserMustBeLoggedIn,
    SQliteError,
    InexistentUser,
    WrongEmail,
    WrongHardwareID, 
    NoAvailableKeyBinded,
    KeyLocked,
    KeyNotRegistered,
    HardwareUnBindedPleaseLogin
};

#endif